<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="generator" content="MATLAB R2016a"><meta http-equiv="X-UA-Compatible" content="IE=edge,IE=9,chrome=1"><title>Adaptive_Current_Controller</title><style type="text/css">
* {margin: 0; padding: 0;}
body {text-align: start; line-height: 17.2339992523193px; min-height: 0px; white-space: normal; color: rgb(0, 0, 0); font-family: Consolas, Inconsolata, Menlo, monospace; font-style: normal; font-size: 14px; font-weight: normal; text-decoration: none; white-space: normal; }
h1, h2 {font-weight: normal;}
.content { padding: 30px; }

.S0 { margin-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-right: 0px;  }
.S1 { line-height: 26.3999996185303px; min-height: 24px; white-space: pre-wrap; color: rgb(213, 80, 0); font-family: Helvetica, Arial, sans-serif; font-size: 22px; white-space: pre-wrap; margin-left: 4px; margin-top: 3px; margin-bottom: 15px; margin-right: 10px;  }
.S2 { min-height: 0px; margin-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-right: 0px;  }
.S3 { line-height: 21px; min-height: 17px; white-space: pre-wrap; font-family: Helvetica, Arial, sans-serif; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px;  }
.S4 { line-height: 20.576000213623px; min-height: 20px; white-space: pre-wrap; color: rgb(60, 60, 60); font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; white-space: pre-wrap; margin-left: 4px; margin-top: 15px; margin-bottom: 9px; margin-right: 10px;  }
.S5 { font-family: Helvetica, Arial, sans-serif; margin-left: 0px; margin-top: 10px; margin-bottom: 20px; margin-right: 0px;  }
.S6 { text-align: left; line-height: 21px; white-space: pre-wrap; white-space: pre-wrap; margin-left: 56px; margin-top: 0px; margin-bottom: 0px; margin-right: 0px;  }
.S7 { font-weight: bold; margin-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-right: 0px;  }
.S8 { text-align: center; line-height: 20.576000213623px; min-height: 20px; white-space: pre-wrap; color: rgb(60, 60, 60); font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; white-space: pre-wrap; margin-left: 4px; margin-top: 15px; margin-bottom: 9px; margin-right: 10px;  }
.S9 { text-align: center; line-height: 21px; min-height: 17px; white-space: pre-wrap; font-family: Helvetica, Arial, sans-serif; white-space: pre-wrap; margin-left: 4px; margin-top: 2px; margin-bottom: 9px; margin-right: 10px;  }
.S10 { line-height: 20.576000213623px; min-height: 20px; white-space: pre-wrap; color: rgb(60, 60, 60); font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; white-space: pre-wrap; margin-left: 4px; margin-top: 3px; margin-bottom: 9px; margin-right: 10px;  }

.LineNodeBlock {margin: 10px 0 10px 0; background-color: #F7F7F7;}
.LineNodeBlock+.paragraphNode {margin-top: 10px;}
.lineNode {padding-left: 10px; border-left: 1px solid #E9E9E9; border-right: 1px solid #E9E9E9;}
.inlineWrapper:first-child .lineNode,.inlineWrapper.outputs+.inlineWrapper .lineNode {padding-top: 5px; border-top: 1px solid #E9E9E9;}
.inlineWrapper:last-child .lineNode,.inlineWrapper.outputs .lineNode {padding-bottom: 5px; border-bottom: 1px solid #E9E9E9;}
.lineNode .textBox {white-space: pre;}
</style></head><body><div class = "content"><div class = 'SectionBlock containment active'><h1 class = "S1"><span class = "S2">Adaptive_Current_Controller</span></h1><div class = "S3"><span class = "S2">Adaptive Current Controller.</span></div><div class = "S3"><span class = "S2"></span></div><h2 class = "S4"><span class = "S2"># Model</span></h2><ul class = "S5"><li class = "S6"><span class = "S7">Looks</span></li></ul><h2 class = "S8"><img class="imageNode" width="231" height="354" style="vertical-align: baseline" src=""></h2><div class = "S3"><span class = "S2"></span></div><ul class = "S5"><li class = "S6"><span class = "S7">Inside  of  the model</span></li></ul><div class = "S9"><img class="imageNode" width="1066" height="437" style="vertical-align: baseline" src=""></div><h2 class = "S4"><span class = "S2"># Parameter</span></h2><ul class = "S5"><li class = "S6"><span class = "S7">k</span><span class = "S0">: Gain.</span></li><li class = "S6"><span class = "S7">R</span><span class = "S0">: Resistance of Motor.</span></li><li class = "S6"><span class = "S7">Xd</span><span class = "S0">: Inductance of Motor.</span></li><li class = "S6"><span class = "S7">F</span><span class = "S0">: Flux linkage.</span></li><li class = "S6"><span class = "S7">OutputMax</span><span class = "S0">: Max Output of the controller.</span></li><li class = "S6"><span class = "S7">OutputMin</span><span class = "S0">: Min Output of the controller.</span></li></ul><h2 class = "S4"><span class = "S2"></span></h2><h2 class = "S4"><span class = "S2"># Description</span></h2><ul class = "S5"><li class = "S6"><span class = "S7">Equation</span><span class = "S0">:</span></li></ul><div class = "S3"><span class = "S2">                PWM_UH  = PWM_U + deadtime_value/2;</span></div><div class = "S3"><span class = "S2">                PWM_UL	  = PWM_U + deadtime_value/2;</span></div><div class = "S3"><span class = "S2">                PWM_VH	  = PWM_V + deadtime_value/2;</span></div><div class = "S3"><span class = "S2">                PWM_VL   = PWM_V + deadtime_value/2;</span></div><div class = "S3"><span class = "S2">                PWM_WH = PWM_W + deadtime_value/2;</span></div><div class = "S3"><span class = "S2">                PWM_WL  = PWM_W + deadtime_value/2;</span></div><ul class = "S5"><li class = "S6"><span class = "S7">input</span><span class = "S0">:   </span></li></ul><div class = "S3"><span class = "S2">                [As]: Ia current of the Motor.</span></div><div class = "S3"><span class = "S2">                [Bs]: Ib current of the Motor.</span></div><div class = "S3"><span class = "S2">                [Angle]: Elec angle of the Motor.</span></div><div class = "S3"><span class = "S2">                [id_ref]: Id reference.</span></div><div class = "S3"><span class = "S2">                [iq_ref]: Iq reference.</span></div><div class = "S3"><span class = "S2">                [wn]: Speed feedback of the Motor(rad/s)</span></div><div class = "S3"><span class = "S2"></span></div><ul class = "S5"><li class = "S6"><span class = "S7">output</span><span class = "S0">:</span></li></ul><div class = "S3"><span class = "S2">                [Ds]: Id current feedback.</span></div><div class = "S3"><span class = "S2">                [Qs]: Iq current feedback.</span></div><div class = "S3"><span class = "S2">                [ea]: A phase PWM output. </span></div><div class = "S3"><span class = "S2">                [eb]: B phase PWM output. </span></div><div class = "S3"><span class = "S2">                [ec]: C phase PWM output. </span></div></div><div class = "S0"></div><div class = 'SectionBlock containment'><h2 class = "S10"><span class = "S2"></span></h2></div></div>
<!-- 
##### SOURCE BEGIN #####
%% Adaptive_Current_Controller
% Adaptive Current Controller.
% 
% 
%% # Model
% * *Looks*
%% 
% 
% 
% * *Inside  of  the model*
% 
% 
%% # Parameter
% * *k*: Gain.
% * *R*: Resistance of Motor.
% * *Xd*: Inductance of Motor.
% * *F*: Flux linkage.
% * *OutputMax*: Max Output of the controller.
% * *OutputMin*: Min Output of the controller.
%% 
%% # Description
% * *Equation*:
% 
%                 PWM_UH  = PWM_U + deadtime_value/2;
% 
%                 PWM_UL	  = PWM_U + deadtime_value/2;
% 
%                 PWM_VH	  = PWM_V + deadtime_value/2;
% 
%                 PWM_VL   = PWM_V + deadtime_value/2;
% 
%                 PWM_WH = PWM_W + deadtime_value/2;
% 
%                 PWM_WL  = PWM_W + deadtime_value/2;
% 
% * *input*:   
% 
%                 [As]: Ia current of the Motor.
% 
%                 [Bs]: Ib current of the Motor.
% 
%                 [Angle]: Elec angle of the Motor.
% 
%                 [id_ref]: Id reference.
% 
%                 [iq_ref]: Iq reference.
% 
%                 [wn]: Speed feedback of the Motor(rad/s)
% 
% 
% 
% * *output*:
% 
%                 [Ds]: Id current feedback.
% 
%                 [Qs]: Iq current feedback.
% 
%                 [ea]: A phase PWM output. 
% 
%                 [eb]: B phase PWM output. 
% 
%                 [ec]: C phase PWM output. 
%%
##### SOURCE END #####
--></body></html>